package edu.xhu.model.biliuser.pojos;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@ApiModel(value = "bili用户信息表")
@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("bili_user_info")
public class BiliUserInfo implements Serializable {
    /**
     * 用户ID
     */
    @ApiModelProperty(name = "用户ID")
    @TableId
    private Long userId;
    /**
     * 昵称显示
     */
    @ApiModelProperty(name = "昵称显示")
    private String nickName;
    /**
     * 头像
     */
    @ApiModelProperty(name = "头像")
    private String image;
    /**
     * 邮箱
     */
    @ApiModelProperty(name = "邮箱")
    private String email;
    /**
     * 学校信息
     */
    @ApiModelProperty(name = "学校信息")
    private String school;
    /**
     * 性别
     */
    @ApiModelProperty(name = "性别")
    private String sex;
    /**
     * 我的签名
     */
    @ApiModelProperty(name = "我的签名")
    private String sign;
    /**
     * 账号等级
     */
    @ApiModelProperty(name = "账号等级")
    private String level;
    /**
     * 当前经验值
     */
    @ApiModelProperty(name = "当前经验值")
    private String experience;
    /**
     * 更新时间
     */
    @ApiModelProperty(name = "更新时间")
    private Date updateTime;
    /**
     * 出生日期
     */
    @ApiModelProperty(name = "出生日期")
    private Date birthDate;
    /**
     * B币
     */
    @ApiModelProperty(name = "B币")
    private Integer biliCoin;
    /**
     * 硬币
     */
    @ApiModelProperty(name = "硬币")
    private Integer coin;
    /**
     * 关注数
     */
    @ApiModelProperty(name = "关注数")
    private Long follow;
    /**
     * 粉丝数
     */
    @ApiModelProperty(name = "粉丝数")
    private Long fans;
    /**
     * 获赞数
     */
    @ApiModelProperty(name = "获赞数", notes = "")
    private Long likes;
    /**
     * 播放数
     */
    @ApiModelProperty(name = "播放数", notes = "")
    private Long play;
    /**
     * 个人空间背景
     */
    @ApiModelProperty(name = "个人空间背景")
    private String backgroundUrl;

    /**
     * 注册构造函数
     */
    public BiliUserInfo(Long id, String nickName, String image, String level, String experience, Date date) {
        this.userId = id;
        this.nickName = nickName;
        this.image = image;
        this.level = level;
        this.experience = experience;
        this.updateTime = date;
    }
}
